package org.openwork.portlet.skillmanagement.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import org.openwork.portlet.skillmanagement.model.SkillCategory;


/**
 * <a href="SkillCategoryPersistence.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * @author    Samuel Garcia Martinez
 * @see       SkillCategoryPersistenceImpl
 * @see       SkillCategoryUtil
 * @generated
 */
public interface SkillCategoryPersistence extends BasePersistence<SkillCategory> {
    public void cacheResult(
        org.openwork.portlet.skillmanagement.model.SkillCategory skillCategory);

    public void cacheResult(
        java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> skillCategories);

    public org.openwork.portlet.skillmanagement.model.SkillCategory create(
        long id);

    public org.openwork.portlet.skillmanagement.model.SkillCategory remove(
        long id)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchCategoryException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory updateImpl(
        org.openwork.portlet.skillmanagement.model.SkillCategory skillCategory,
        boolean merge)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory findByPrimaryKey(
        long id)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchCategoryException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory fetchByPrimaryKey(
        long id) throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findByGroupId(
        long groupId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findByGroupId(
        long groupId, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findByGroupId(
        long groupId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory findByGroupId_First(
        long groupId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchCategoryException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory findByGroupId_Last(
        long groupId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchCategoryException;

    public org.openwork.portlet.skillmanagement.model.SkillCategory[] findByGroupId_PrevAndNext(
        long id, long groupId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchCategoryException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillCategory> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeByGroupId(long groupId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countByGroupId(long groupId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countAll()
        throws com.liferay.portal.kernel.exception.SystemException;
}
